package com.springbootblog.controller.fontend;

import com.springbootblog.service.fontend.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 文件部分接口
 * @className AboutController
 * @author camellia
 * @email 805795955@qq.com
 * @date 2024/01/01
 * @version 1.0
 */
@RequestMapping("java")
@RestController
//@CrossOrigin(origins="*",maxAge=3600)
public class FileController
{
    /**
     * 自动装载（service接口注入）
     */
    @Autowired
    private FileService fileService;

    @GetMapping("placeonfile/getFileList")
    public Map<String,Object> getGossipList()
    {
        Map<String,Object> result = fileService.getFileList();
        return result;
    }
}
